<template>
    <div style="padding:30px">
        <h4 style="
        font-weight: 700;
        font-style: normal;
        font-size: 24px;
        color: #344563;
      ">
            新增领料单
        </h4>
        <el-form ref="form" :model="form" label-width="80px">
            <div style="display:flex;">
                <div class="block">
                    <span class="demonstration">单据日期</span>
                    <el-date-picker
                    v-model="value1"
                    type="date"
                    placeholder="选择日期">
                    </el-date-picker>
                </div>
             <el-form-item label="领料单号">
            <el-input v-model="form.region"></el-input>
            </el-form-item>
            </div>
            <el-form-item label="活动形式">
            <el-input type="textarea" v-model="form.desc"></el-input>
            </el-form-item>
            
            <h4>器材列表</h4>
              <div style="display:flex;">
                    <el-form-item label="器材名称">
                    <el-input v-model="form.qicai"></el-input>
                    </el-form-item>
                    <el-form-item label="入库数量">
                    <el-input v-model="form.ruku"></el-input>
                    </el-form-item>
              </div>
              <div style="display:flex;">
                <el-form-item label="单价">
                    <el-input v-model="form.danjia"></el-input>
                </el-form-item>
                <el-form-item label="金额">
                   <span style="color:red;">￥{{300}}</span>
                </el-form-item>
                <el-row style="margin-left:30px;">
                    <el-button type="primary">加入明细</el-button>
                </el-row>
              </div>

               <el-form-item>
                    <el-button type="primary" >立即创建</el-button>
                    <el-button>取消</el-button>
                </el-form-item>
        </el-form>
         
         <el-table
    :data="tableData"
    style="width: 100%">
    <el-table-column
      label="序号"
      >
      <template slot-scope="scope">
        <span style="margin-left: 10px">{{ scope.row.date }}</span>
      </template>
    </el-table-column>
    <el-table-column
      label="器材编号"
      >
      <template slot-scope="scope">
        <span style="margin-left: 10px">{{ scope.row.date }}</span>
      </template>
    </el-table-column>
    <el-table-column
      label="器材名称"
      >
      <template slot-scope="scope">
        <span style="margin-left: 10px">{{ scope.row.date }}</span>
      </template>
    </el-table-column>
    <el-table-column
      label="规格型号"
      >
      <template slot-scope="scope">
        <span style="margin-left: 10px">{{ scope.row.date }}</span>
      </template>
    </el-table-column>
     <el-table-column
      label="单位"
      >
      <template slot-scope="scope">
        <span style="margin-left: 10px">{{ scope.row.date }}</span>
      </template>
    </el-table-column>
     <el-table-column
      label="数量"
      >
      <template slot-scope="scope">
        <span style="margin-left: 10px">{{ scope.row.date }}</span>
      </template>
    </el-table-column>
     <el-table-column
      label="单价"
      >
      <template slot-scope="scope">
        <span style="margin-left: 10px">{{ scope.row.date }}</span>
      </template>
    </el-table-column>
    <el-table-column
      label="金额"
      >
      <template slot-scope="scope">
        <span style="margin-left: 10px">{{ scope.row.date }}</span>
      </template>
    </el-table-column>
    <el-table-column label="操作">
        <i class="el-icon-delete"></i>
    </el-table-column>
  </el-table>
    </div>
</template>
<script>
  export default {
    data() {
      return {
        form: {
          name: '',
          region: '',
          qicai:'',
          ruku:'',
          danjia:'',
          type: [],
          desc: ''
        },
          value1: '',
         tableData: [{
          date: '2016-05-02',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-04',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1517 弄'
        }]
      
    }
  }
  }
</script>